package com.pm25.response;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.reflect.TypeToken;
import com.pm25.response.bean.AqiDetails;

public class AqiRankingResponse extends AbstractResponse {
	
	private List<AqiDetails> details;

	public AqiRankingResponse(String responseBody) {
		super(responseBody);
	}

	@Override
	public void parseResult() {
		Type type = new TypeToken<ArrayList<AqiDetails>>() {
		}.getType();
		details = gson.fromJson(responseBody, type);
	}

	public List<AqiDetails> getDetails() {
		return details;
	}

	public void setDetails(List<AqiDetails> details) {
		this.details = details;
	}

}
